import request from '@/plugin/axios'
export function GetAll (query) {
  return request({
    url:
      'api/services/app/Tenant/GetAll?SkipCount=' +
      query.skipCount +
      '&MaxResultCount=' +
      query.maxResultCount + '&Keyword=' + query.keyword + '&IsActive=' + query.isActive,
    method: 'get'
  })
}
export function Get (query) {
  return request({
    url: 'api/services/app/Tenant/Get?Id=' + query,
    method: 'get'
  })
}
export function Create (query) {
  return request({
    url: 'api/services/app/Tenant/Create',
    method: 'post',
    data: query
  })
}
export function Delete (query) {
  return request({
    url: 'api/services/app/Tenant/Delete?Id=' + query,
    method: 'delete'
  })
}
export function Update (query) {
  return request({
    url: 'api/services/app/Tenant/Update',
    method: 'put',
    data: query
  })
}
export function IsTenant (query) {
  return request({
    url: 'api/services/app/Account/IsTenantAvailable',
    method: 'post',
    data: query
  })
}
export function Register (query) {
  return request({
    url: 'api/services/app/RegisterTenant/Create',
    method: 'post',
    data: query
  })
}
export function SendEmail (query) {
  return request({
    url: 'api/services/app/RegisterTenant/SendEmail',
    method: 'post',
    data: query
  })
}
export function CheckCode (query) {
  return request({
    url: 'api/services/app/RegisterTenant/CheckCode',
    method: 'post',
    data: query
  })
}
